package com.hmy.park.service.impl;

import com.hmy.park.domain.HmyParkType;
import com.hmy.park.mapper.ParkTypeMapper;
import com.hmy.park.service.ParkTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author ljy
 * @Date 2024/1/29 15:58
 * @description: 园区类型管理实现
 * @Title: ParkTypeServiceImpl
 * @Package com.hmy.pig.service.impl
 */
@Service
public class ParkTypeServiceImpl implements ParkTypeService {
    @Resource
    private ParkTypeMapper parkTypeMapper;

    @Override
    public List<HmyParkType> findParkTypeList() {
        return parkTypeMapper.findParkTypeList();
    }

    @Override
    public Integer saveParkType(HmyParkType hmyParkType) {
        return parkTypeMapper.saveParkType(hmyParkType);
    }

    @Override
    public Integer updateParkById(HmyParkType hmyParkType) {
        return parkTypeMapper.updateParkById(hmyParkType);
    }

    @Override
    public Integer delParkById(Long parkId) {
        return parkTypeMapper.delParkById(parkId);
    }
}
